﻿using Quba.Business.Services.Abstract.Tag;
using Quba.DataAccess.Repositories.Abstract;
using Quba.DataAccess.Repositories.Concrete;
using Quba.Entities.Database.General;

namespace Quba.Business.Services.Concrete.Tag
{
    public class TagBusiness : ITagBusiness
    {
        private readonly ITagRepository _tagRepository;

        #region ctor
        public TagBusiness()
        {
            _tagRepository = new TagRepository();
        }
        #endregion ctor

        public BaseEntity AddTag(Entities.Database.Tag.Tag tag)
        {
            return
                _tagRepository.Add(tag);
        }

        public Entities.Database.Tag.Tag GetTagDetails(int tagId)
        {
            return
                _tagRepository.Get(tagId);
        }
    }
}